/**
 *  StaDiUM - State Diagram Unified Modeler
 *  Copyright (C) 2007  Stefan Bucur, Mihai Balan, Claudiu Tanase
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.

 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/**
 *  File Information
 *
 *  Last Modified On: $Date: 2007-06-04 16:04:41 +0000 (Mon, 04 Jun 2007) $
 *  Last Modified By: $Author: mihai.balan $
 */

package ro.pub.cs.stadium.input.xml;

import java.io.InputStream;
import java.io.InputStream;

import ro.pub.cs.stadium.document.IDocument;
import ro.pub.cs.stadium.plugin.IInputPlugin;
import ro.pub.cs.stadium.plugin.IPlugin;
import ro.pub.cs.stadium.plugin.PluginSettings;

/**
 * Implements the XML input serialization for diagram document
 * @author stefan
 *
 */
public class InputXMLPlugin implements IPlugin, IInputPlugin {

	/**
	 * Returns an instance of the specific plugin implementation
	 */
	public Object getPlugin(int implementation) {
		switch (implementation) {
			case IPlugin.PLUGIN_INPUT:
				return this;
			default:
				break;
		}
		
		return null;
	}

	/**
	 * Returns a list of supported plugins
	 */
	public int getPluginImplementations() {
		return IPlugin.PLUGIN_INPUT;
	}

	/**
	 * Reads an IDocument from a given XML file
	 */
	public IDocument readDocument(InputStream stream) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Executes the plugin initialization procedure
	 */
	public void initialise(PluginSettings settings) {
		// TODO Auto-generated method stub
		
	}

}
